package com.lpl.service.impl;

import com.lpl.mapper.Xaingma;
import com.lpl.mapper.getUserma;
import com.lpl.polo.conter;
import com.lpl.polo.result;
import com.lpl.polo.xaing;
import com.lpl.service.getxing;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class getxaingmpl  implements getxing {
    @Autowired
    private com.lpl.mapper.Xaingma Xaingma;
    @Override
    public result insterxiang( xaing lunxaing) {

        Xaingma.insLun(lunxaing);
        return null;
    }

    @Override
    public List<xaing> getxiang() {
        List<xaing> res= Xaingma.getLun();
        return res;
    }

    @Override
    public result tixiang(conter conter) {

        Xaingma.tixiang(conter);
        return null;
    }

    @Override
    public List<conter> getlunxiang(int id) {
        List<conter> res= Xaingma.getLunx(id);
        return res;
    }
}
